.wmy-button {
  height: 40px;
  line-height: 40px;
  min-width: 50px;
  padding: 0 5px;
  color: #ffffff;
  background-color: #ededed;
  font-size: 20px;
  font-weight: bold;
  font-family: Arial;
  background: linear-gradient(to bottom, #599bb3 5%, #408c99 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#599bb3', endColorstr='#408c99', GradientType=0);
  border: 0px solid #dcdcdc;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0px 10px 14px -7px #276873;
  text-align: center;
  display: inline-block;
  text-decoration: none;

  &:hover {
    background-color: #f5f5f5;
    background: linear-gradient(to bottom, #408c99 5%, #599bb3 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#408c99', endColorstr='#599bb3', GradientType=0);
  }

  &:active {
    position: relative;
    top: 1px;
    transform: scale(0.8, 0.8);
  }
}

.wmy-elasticity {
  &:active {
    position: relative;
    top: 1px;
    transform: scale(0.8, 0.8);
  }
}

/* input输入框阴影 */
.wmy-input {
  margin: 0;
  vertical-align: top;
  display: inline-block;
  font-family: "Pontano Sans";
  font-size: 13px;
  color: #343434;
  min-width: 150px;
  height: 20px;
  background: #fbfbfb;
  border: 1px solid #cccdcf;
  box-shadow: inset 0 2px 3px #e8e8e8;

  &::placeholder {
    color: rgb(118, 118, 118);
  }

  &:focus {
    outline: none;
  }
}

.wmy-check_input {
  width: 240px;
  height: 24px;
  padding: 7px 9px;
  line-height: 24px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  border: 1px solid;
  border-color: #cececf;
  border-radius: 0;
  background: white;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;
  width: 240px;
  height: 24px;
  padding: 7px 9px;
  line-height: 24px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  border: 1px solid;
  border-color: #cececf;
  border-radius: 0;
  background: white;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
  -webkit-appearance: none;

  &:focus {
    outline: none;
    border-color: #92afed;
    box-shadow: 0 0 5px #92afec, inset 1px 1px 2px rgba(0, 0, 0, 0.1);
  }
}

input[type=checkbox] {
  visibility: hidden;
}

.wmy-checkbox {
  width: 25px;
  margin: 20px 100px;
  position: relative;

  label {
    cursor: pointer;
    position: absolute;
    width: 27px;
    height: 26px;
    top: 0;
    left: 0;
    background: #eee;
    border: 1px solid #ddd;

    &:after {
      opacity: 0.2;
      content: '';
      position: absolute;
      width: 9px;
      height: 5px;
      background: transparent;
      top: 6px;
      left: 7px;
      border: 3px solid #333;
      border-top: none;
      border-right: none;
      -webkit-transform: rotate(-45deg);
      -moz-transform: rotate(-45deg);
      -o-transform: rotate(-45deg);
      -ms-transform: rotate(-45deg);
      transform: rotate(-45deg);
    }

    &:hover {
      &::after {
        opacity: 0.5;
      }
    }
  }

  input[type=checkbox]:checked {
    &+label {
      &:after {
        opacity: 1;
      }
    }
  }
}

.wmy-checkboxOne {
  width: 40px;
  height: 10px;
  background: #555;
  margin: 20px 80px;
  position: relative;
  border-radius: 3px;

  label {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: all .5s ease;
    cursor: pointer;
    position: absolute;
    top: -3px;
    left: -3px;
    background: #ccc;
  }

  input[type=checkbox]:checked {
    &+label {
      left: 27px;
    }
  }
}

.wmy-checkboxTwo {
  width: 120px;
  height: 40px;
  background: #333;
  margin: 20px 60px;
  border-radius: 50px;
  position: relative;

  input[type=checkbox]:checked {
    &+label {
      left: 84px;
      background: #26ca28;
    }
  }

  label {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;
    cursor: pointer;
    position: absolute;
    top: 9px;
    z-index: 1;
    left: 12px;
    background: #ddd;
  }

  &:before {
    content: '';
    position: absolute;
    top: 19px;
    left: 14px;
    height: 2px;
    width: 90px;
    background: #111;
  }
}


.wmy-checkboxThree {
  width: 120px;
  height: 40px;
  background: #333;
  margin: 20px 60px;
  border-radius: 50px;
  position: relative;

  &:before {
    content: 'On';
    position: absolute;
    top: 12px;
    left: 13px;
    height: 2px;
    color: #26ca28;
    font-size: 16px;
  }

  &:after {
    content: 'Off';
    position: absolute;
    top: 12px;
    left: 84px;
    height: 2px;
    color: #ddd;
    font-size: 16px;
  }

  label {
    display: block;
    width: 52px;
    height: 22px;
    border-radius: 50px;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;
    cursor: pointer;
    position: absolute;
    top: 9px;
    z-index: 1;
    left: 12px;
    background: #ddd;
  }

  input[type=checkbox]:checked {
    &+label {
      left: 60px;
      background: #26ca28;
    }
  }
}

.wmy-checkboxFour {
  width: 40px;
  height: 40px;
  background: #ddd;
  margin: 20px 90px;
  border-radius: 100%;
  position: relative;
  -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.5);

  label {
    display: block;
    width: 30px;
    height: 30px;
    border-radius: 100px;
    -webkit-transition: all .5s ease;
    -moz-transition: all .5s ease;
    -o-transition: all .5s ease;
    -ms-transition: all .5s ease;
    transition: all .5s ease;
    cursor: pointer;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    background: #333;
    -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.5);
  }

  input[type=checkbox]:checked {
    &+label {
      background: #26ca28;
    }
  }
}

// 波纹效果
.wmy-ripple-button {
  position: relative;
  font-weight: 400;
  text-align: center;
  width: auto;
  float: left;
  padding: 0 25px;
  line-height: 45px;
  overflow: hidden;
  position: relative;
  z-index: 0;
  cursor: pointer;
  color: #252b2d;
  margin-right: 2.5em;
}

.my-ripple-button.raised {
  -moz-transition: all 0.1s;
  -o-transition: all 0.1s;
  -webkit-transition: all 0.1s;
  transition: all 0.1s;
  background: #b9ccd2;
}

.my-ripple-button.raised:active {
  background: #515151;
  box-shadow: 0px 1px 1px #063e6b;
}

.hoverable:hover>.anim {
  -moz-animation: anim-out 0.75s;
  -webkit-animation: anim-out 0.75s;
  animation: anim-out 0.75s;
}

.hoverable:hover>.anim:after {
  -moz-animation: anim-out-pseudo 0.75s;
  -webkit-animation: anim-out-pseudo 0.75s;
  animation: anim-out-pseudo 0.75s;
}

@keyframes anim-out-pseudo {
  0% {
    background: rgba(0, 0, 0, 0.25);
  }
  100% {
    background: transparent;
  }
}